package VN.EDU.IMIC.DEVELOPER.NGUYENVANTHIEN.EXAM01.Bai2;

public class View {

	public static void main(String[] args) {
		EntityStudent objStudent1 = new EntityStudent();
		EntityStudent objStudent2 = new EntityStudent();
		EntityStudent objStudent3 = new EntityStudent();
		
		
		
		
		objStudent1.setRollNo("1");
		objStudent1.setFullName("Nguyễn Thị Tởn");
		objStudent1.setSex(true);
		objStudent1.setEmail("abc");
		objStudent1.setMobiles("12345687");
		objStudent1.setMark(8);
		
		Controller objController1 = new Controller(objStudent1);
		String a = objController1.XepLoai(objStudent1);
		System.out.println("Student1 " +a);
		
		
		
		objStudent2.setRollNo("2");
		objStudent2.setFullName("Trần Ngọc Sơn");
		objStudent2.setSex(false);
		objStudent2.setEmail("xyz");
		objStudent2.setMobiles("09765223");
		objStudent2.setMark(8);
		
		Controller objController2 = new Controller(objStudent2);
		String b = objController2.XepLoai(objStudent2);
		System.out.println("Student2 " +b);
		
		
		objStudent3.setRollNo("3");
		objStudent3.setFullName("Hoàng Văn Phốc");
		objStudent3.setSex(true);
		objStudent3.setEmail("ghj");
		objStudent3.setMobiles("09765432");
		objStudent3.setMark(9);
		
		Controller objController3 = new Controller(objStudent3);
		String c = objController3.XepLoai(objStudent3);
		System.out.println("Student3 " +c);
		
		EntityStudent objStudent = new EntityStudent();
		Controller m_objController = new Controller(objStudent);
		
		boolean x = m_objController.KTDiemSV(objStudent1, objStudent2);
		System.out.println("Student1 và Student 2 bằng điểm nhau là: "+ x);
		
	}
}
